/*
 * @description: 
 * @Author: Islands
 * @Date: 2024-06-23 21:09:39
 * @LastEditTime: 2024-06-24 16:48:48
 */
import { PropType } from "vue";
import { IResultPage } from '@/api/types/index';

export type ISearch={
    constants:Array<any>,
    data: any
}
export type ITable={
    constants:Array<any>,
    data: IResultPage<any>,
    rowKey?:any
}
export type IDetails={
    constants:Array<any>,
    data: any,
    title?:string,
}
export const props = {
    search:{
        type: Object as PropType<ISearch>,
        default:{},
    },
    table:{
        type: Object as PropType<ITable>,
        default:{},
    },
    details:{
        type: Object as PropType<IDetails>,
        default:{},
    }
}


export interface Emits {
    (e:'searchChange',searchData:any):()=>void;
    (e:'deleteBatchChange',ids:any):()=>void;
    (e:'deleteChange',id:any):()=>void;
    (e:'detailsChange',data:any):()=>void;
}